package com.simulacra.model;

import com.simulacra.applet.WinnerListener;
/**
 * Case Basica que define las acciones de un SoccerGame
 *
 */
public abstract class SoccerGame {
	private int localScore =0;
	private int visitScore =0;
	private Team localTeam = null;
	private Team visitorTeam = null;
	private EventGenerator eventGenerator= null;
	public static final int DEFAULT_EVENT_AMOUNT = 30; 
	public abstract void init(WinnerListener reference);

	public void setEventGenerator(EventGenerator eventGenerator) {
		this.eventGenerator = eventGenerator;
	}

	public EventGenerator getEventGenerator() {
		return eventGenerator;
	}

	public void setLocalScore(int localScore) {
		this.localScore = localScore;
	}

	public int getLocalScore() {
		return localScore;
	}

	public void setVisitScore(int visitScore) {
		this.visitScore = visitScore;
	}

	public int getVisitScore() {
		return visitScore;
	}

	public void setLocalTeam(Team localTeam) {
		this.localTeam = localTeam;
	}

	public Team getLocalTeam() {
		return localTeam;
	}

	public void setVisitorTeam(Team visitorTeam) {
		this.visitorTeam = visitorTeam;
	}

	public Team getVisitorTeam() {
		return visitorTeam;
	}

}
